home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
- Subject: Re: Help for using bcopy function
- Date: Tue, 27 Feb 96 23:00:59 GMT
- Organization: none
- Distribution: world
- Message-ID: <825462059snz@genesis.demon.co.uk>
- References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <ELIAS.96Feb27144032@cepheus.omicron.se>
- elias@cepheus.omicron.se "Elias Martenson" writes:
-
- >In article <4gl53u$4bv@kocrsv08.delcoelect.com> c2xjs2@mail.delcoelect.com
- > (Jianli Sun) writes:
- >
- >> I use bcopy function in a client-server program, I get a error
- >> say bcopy is not declared, when I try to compile it on UNIX using
- >> gcc. Can someone out there, tell me which libary file I should
- >> inclued to compile it. please e-mail me. thanks!
- >
- >bcopy() is not standard AFAIK. Use memcpy instead.
-
- AFAIK bcopy() is defined for overlapping copies in which case you must
- use memmove() unless you can be sure that source and destination don't
- overlap in the particular case.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-